package com.asw.springboot.common.result;

/**
 * 应用系统级别的错误码
 *
 * Created by bysocket on 14/03/2017.
 */
public enum GlobalErrorInfoEnum implements ErrorInfoInterface{
    SUCCESS("2000", "success"),
    PARAMS_NO_COMPLETE("5001", "the object argument must be not null"),
    SYS_ERROR("4000","system error");


    private String code;

    private String message;

    GlobalErrorInfoEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    public void setCode(String code) {
        this.code = code;
    }
}
